home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / isstate.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.5 KB  |  42 lines

  1. /* Copyright (C) 1993, 1995, 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: isstate.h,v 1.2 2000/09/19 19:00:46 lpd Exp $ */
  20. /* Definition of 'save' structure */
  21. /* Requires isave.h */
  22.  
  23. #ifndef isstate_INCLUDED
  24. #  define isstate_INCLUDED
  25.  
  26. /* Saved state of allocator and other things as needed. */
  27. /*typedef struct alloc_save_s alloc_save_t; *//* in isave.h */
  28. struct alloc_save_s {
  29.     gs_ref_memory_t state;    /* must be first for subclassing */
  30.     vm_spaces spaces;
  31.     bool restore_names;
  32.     bool is_current;
  33.     ulong id;
  34.     void *client_data;
  35. };
  36.  
  37. #define private_st_alloc_save()    /* in isave.c */\
  38.   gs_private_st_suffix_add1(st_alloc_save, alloc_save_t, "alloc_save",\
  39.     save_enum_ptrs, save_reloc_ptrs, st_ref_memory, client_data)
  40.  
  41. #endif /* isstate_INCLUDED */
  42.